<?php

// called from index function of main_interface.php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
echo "</br>View for testing of view-to-model functionality</br>";

//$this->load->model('testing/test_v_to_m_model');
//echo $this->test_v_to_m_model->display_user_name();

//echo $name;
//print_r($array);

//foreach($data2 as $key => $row) {
//echo $row['firstname'].' <br />';
//}

/*
// this works
foreach ($test1 as $val => $val2) {
    //echo $val2;
    foreach ($val2 as $val3) {
        echo $val3;
    }
}
 * 
 */
//print_r($test1);
//foreach ($test1 as $key => $row) {
 //   echo $row['name'];
//}
echo "</br>-------------------------------</br>";
foreach ($test1 as $val => $val2) {
    //print_r($val2);
    //echo $val2['name:ORM\Dynasties2\Characters:private'];
    echo "</br>###</br>";
    echo ($val2->getName()) . ($val2->getId());
    //echo($val2->name);
    //echo $val2 -> name:ORM\Dynasties2\Characters:private;
    foreach ($val2 as $val5) {
        //echo $val5['name:ORM\Dynasties2\Characters:private'];
    }
    foreach ($val2 as $val3 => $val4) {
        //echo $val4['name:ORM\Dynasties2\Characters:private'];
        //echo "--Val3:  " . $val3 . " -- ";
        //print_r($val3);
        //echo $val4;
        
    }
}